package com.homegoods.discover.model;

import com.homegoods.discover.item.BestCollectItem;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

/**
 * @author QiQi
 * @ClassName: BestCollectModel
 * @date 2018/9/11
 * @description
 */
public class BestCollectModel extends BaseModel<BestCollectItem> {
    /**
     * "num": "1",
     * "sid": "KZVh002Y%2fVsjt0ql5ZnK7H6kfOLCCNmyiRsJiKLMXtdPjsEKZNdhnisxQxkoybGl",
     * "title": "一周彩票星座:处女座花销大 水瓶合理购彩",
     * "publicimg": "/upath/2018/11/19/155628166451097ufi.jpg",
     * "source": "卡斗",
     * "compayimg": "/",
     * "url": "/wap/NewsDetails.html",
     * "cmgnum": 0
     */
    private String num;

    private String sid;
    /**
     * 精选标题
     */
    private String title;
    /**
     * 图片地址
     */
    private String publicimg;

    /**
     * 信息来源
     */
    private String source;
    private String compayimg;
    private String url;

    /**
     * 消息数
     */
    private String cmgnum;

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getPublicimg() {
        return publicimg;
    }

    public void setPublicimg(String publicimg) {
        this.publicimg = publicimg;
    }

    public String getCompayimg() {
        return compayimg;
    }

    public void setCompayimg(String compayimg) {
        this.compayimg = compayimg;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getCmgnum() {
        return cmgnum;
    }

    public void setCmgnum(String cmgnum) {
        this.cmgnum = cmgnum;
    }

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    @Override
    public BestCollectItem createItem(MultiTypeAdapter adapter) {
        return new BestCollectItem(this);
    }
}
